
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:a="https://ajax4jsf.dev.java.net/ajax"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich"
	xmlns:ctg="http://www.crotouristguide.com/taglib"
	template="/templates/layout/columns_1.xhtml">

	<ui:define name="column1">
		<s:cache key="parkovi_home_column1_#{param.tipParka}_#{currentLang}"
			region="pageFragments">
			<s:div styleClass="title"><h1><h:outputText value="#{messages['title.national.parks']}"
				rendered="#{param.tipParka == 'N'}" /> <h:outputText
				value="#{messages['title.nature.parks']}"
				rendered="#{param.tipParka == 'P'}" /></h1>
				<h:outputText value="#{messages['subtitle.parks']}" />
			</s:div>
			<h:form>
				<rich:dataTable styleClass="list" value="#{parkovi}" var="p"
					columnClasses="rich-separator" width="100%" cellpadding="0"
					cellspacing="0">
					<h:column>
						<h2><h:outputLink
							value="#{application.contextPath}/guides/parkovi/park.seam">
							<f:param name="idParka" value="#{p.idParka}" />
							<f:param name="l" value="#{currentLang}" />
							<f:param name="title" value="#{titleAction.getUrlTitle(p)}"/>
							<h:outputText value="#{p.naziv}" />
						</h:outputLink></h2>
						<s:div styleClass="leftm">
							<h:outputLink
								value="#{application.contextPath}/guides/parkovi/park.seam">
								<f:param name="idParka" value="#{p.idParka}" />
								<f:param name="l" value="#{currentLang}" />
								<f:param name="title" value="#{titleAction.getUrlTitle(p)}"/>
		
								<img alt="#{messages['label.image.alt']} #{p.naziv}" width="240" height="160"
									src="#{slikaAction.getPocSlikaPath(p,'m')}">
								</img>										
									
							</h:outputLink>
						</s:div>
						<s:div>
							<h:outputText styleClass="text11" value="#{stringUtil.substring(p.getOpis(currentLang).getOpis(),700)}..."
								escape="false" />
							<h:outputText value="..." />
							<h:outputLink
								value="#{application.contextPath}/guides/parkovi/park.seam">
								<f:param name="idParka" value="#{p.idParka}" styleClass="special2"/>
								<f:param name="l" value="#{currentLang}" />
								<f:param name="title" value="#{titleAction.getUrlTitle(p)}"/>
								<h:outputText value="#{messages['label.link.more']}" />
							</h:outputLink>
						</s:div>
					</h:column>
				</rich:dataTable>
			</h:form>
		</s:cache>
	</ui:define>
	<ui:define name="column2">
		<s:cache key="parkovi_column2_#{param.tip}_#{currentLang}" region="pageFragments">

		</s:cache>
	</ui:define>
	<ui:define name="tasks">
		<ctg:tasks review="false" />
	</ui:define>
</ui:composition>
